/*
 * intstr.c (part of p8.c)
 *  
 *
 *  Created by Shang-Ju Chen on 3/5/11.
 *  checked on 3/7/11
 *
 */

void
intstr( char *t )
{	
	long x;
	int i;
	
	x = atold(t);
	
	for (i = 0; i < nilit; i++)
	{
		if (x == ilit[i])
		{
			lsymb = symbol[nsymb++] = 250 + i;
			return;
		}
	}
	
	if(50 <= nilit)
	{
		puts("** too many int literals **");
		exit(1);
	}
	
	ilit[nilit++] = x;
	lsymb = symbol[nsymb++] = 249 + nilit;	
}
